﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BooksOnline.Repositories.Base;

namespace BooksOnline.Services.Base
{
    public class ServiceBase<T> : NHibernateSessionProvider 
    {
        public void CreateOrUpdate(T _entity)
        {
            CurrentSession.SaveOrUpdate(_entity);
            CurrentSession.Flush();
        }
    }
}